package com.liulimi.fastapi.core.http;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author cuibaoluo
 * @date 2021/1/8
 * @description： 统一入参
 */
public class Request<T> {

    /**
     * 入参签名
     */
    private String sessionId;
    /**
     * 入参info
     */
    @Valid
    @NotNull
    private T params;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public T getParams() {
        return params;
    }

    public void setParams(T params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "Request{" +
                "sessionId='" + sessionId + '\'' +
                ", params=" + params +
                '}';
    }
}
